# Issue 1 # Kernel panic when we try to restart macOS, # after using a virtual disk. It is always a good # idea to keep multiple open files and also a Terminal # accessing the virtual disk when we try to eject it. # This helps reproducing the issue. # One way of reproducing would be to compile OpenWRT. # Detailed steps are provided below. Sometimes I have # multiple virtual disks open at the same time, each # contains a build for a different atchitecture. # The actual architecture does no matter. # I also managed to reproduce it by clonning a private # repository and then starting a python web server from. # Like usual I forget closing the terminal and any open # files in Xcode, the first time I try to eject it, # until eventually I close everything. # Setup OpenWRT build environment, and compile a test image. xcode-select --install /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" brew install apr apr-util arping asciidoc autoconf automake bash bdw-gc berkeley-db binutils binwalk boost brotli bzip2 c-ares cmake coreutils curl dash diffutils docbook e2fsprogs fastjar findutils flex freetype gawk gcc gdbm gettext git git-extras gmp gnu-getopt gnu-sed gnu-tar gnutls gputils grep guile icu4c intltool isl jemalloc libev libevent libffi libgcrypt libgpg-error libidn2 libmetalink libmpc libnet libpng libssh2 libtasn1 libtool libunistring libxml2 libxslt libyaml lz4 m4 make mercurial mpdecimal mpfr mtr ncurses nettle nghttp2 numpy openblas openldap openssl@1.1 p11-kit p7zip patchutils pcre pcre2 perl pkg-config python@3.8 python@3.9 quilt readline rtmpdump ruby source-highlight sqlite ssdeep subversion tcl-tk unbound unzip utf8proc wget xz zlib zstd cd /usr/local/bin ln -s /usr/local/opt/make/libexec/gnubin/make make # Edit /etc/shells: sudo nano /etc/shells # Add the following line at the end: /usr/local/bin/bash # Change the default shell to bash, and exit chsh -s /usr/local/bin/bash exit # open Disk Utility # press Command-N to create a new virtual disk # Image Format: sparse disk image # save as: ~/vhd/bbb # Size: 50 GB # Format: APFS (casesensitive) # Encryption: none # Partitions: Single partition - GUID Partition Map # Save # open a new terminal git clone https://github.com/openwrt/openwrt.git cd openwrt ./scripts/feeds update -a ./scripts/feeds install -a make defconfig make menuconfig # Target System (Marvell EBU Armada) # Subtarget (Marvell Armada 37x/38x/XP) # Target Profile (Linksys WRT3200ACM) # Save # Exit make -j 16 # Open any text or source file from the virtual disk # in Xcode before or during the build, and keep it open # Once the build is complete, try to eject the virtual disk, # without closing Terminal: this should fail saying that # the disk is in use by Terminal. Press Control-D to close # Terminal, and try ejecting again. This should succeed, # and the file open in Xcode will close automatically. # Restart macOS from the Apple menu. # If the laptop stops responding on a walpaper with a # spining circle, and the trackpad no longer clicks when # pressed, the issue is reproduced. The laptop should # power-off on its own after five minutes, producing a loud # fan-spin. Wait a few seconds, and press a key if it # does not restart on its own. A message should appear # notifying about kernel panic. After that, the system starts. # After login, another message is disaplayed asking to submit # a report to Apple. # Issue 2 # Right after a clean install of macOS Big Sur 11.2.3, # I encountered issues with my Wi-Fi connection. # Usually it connects for a moment, then a few seconds later, # the Wi-Fi icon shows connected, but there is no ping # from my router or from Internet. Turning Wi-Fi off and back # on helps. Then it works well until the next time I reboot. # This morning I installed Xcode, but then when I ran # xcode-select --install # the connection failed and I had to turn off/on Wi-Fi. # It also failed when I tried opening the App Store, to install # Xcode, and also after xcode-select --install, when I tried # searching something in Safari.